package com.sunwayhorizo.health.business.integration.securityI;

import java.util.List;

import javax.ejb.Local;

import com.sunwayhorizo.health.business.dto.patad.empi.PatientBaseInfoDTO;
import com.sunwayhorizo.health.business.dto.registries.DepartmentDTO;
import com.sunwayhorizo.health.business.dto.registries.OrganizationDTO;
import com.sunwayhorizo.health.hl7.common.Hl7Exception;

@Local
public interface SecurityInterfaceManagerLocal
{
    /**
     * 根据机构 code查询机构DTO
     * 
     * @param orgCode
     * @return OrganizationDTO
     * @throws Hl7Exception
     */
    public OrganizationDTO findOrganizationByCode(String orgCode) throws Hl7Exception;


    /**
     * 根据科室code 查询科室DTO
     * 
     * @param departmentCode
     * @return DepartmentDTO
     * @throws Hl7Exception
     */
    public DepartmentDTO findDepartmentByCode(String departmentCode) throws Hl7Exception;


    /**
     * 根据员工Code查询员工DTO
     * 
     * @param empCode
     * @return PatientBaseInfoDTO
     * @throws Hl7Exception
     */
    public PatientBaseInfoDTO findEmployeeByCode(String empCode) throws Hl7Exception;


    /**
     * 根据员工Code查询工作组DTO集合
     * 
     * @param empCode
     * @return List<DepartmentDTO>
     * @throws Hl7Exception
     */
    public List<DepartmentDTO> findWorkGroupListByEmpCode(String empCode) throws Hl7Exception;


    /**
     * 根据用户名密码返回员工号
     * 
     * @param accountName
     * @param password
     * @return
     */
    String findEmpCodeByAccount(String accountName, String password);
}
